import { API_BASE_URL, API_PREFIX, API_URL, ENV_TYPE, ENV_INFO } from './env'

// 导出配置常量
export const API_CONFIG = {
    // 基础URL
    BASE_URL: API_BASE_URL,
    // API前缀
    API_PREFIX: API_PREFIX,
    // 完整API地址
    API_URL: API_URL,

    // 用户相关接口
    USER_LOGIN: '/user/login',
    USER_LOGOUT: '/user/logout',
    USER_INFO: '/user/info',
    USER_LIST: '/user/page',
    USER_ADD: '/user/add',
    USER_UPDATE: '/user/update',
    USER_DELETE: '/user/delete',
    USER_RESET_PASSWORD: '/user/resetPassword',
    USER_UPDATE_PASSWORD: '/user/updatePassword',
    USER_UPDATE_STATUS: '/user/updateStatus',
    USER_AUDIT: '/user/audit',

    // 角色相关接口
    ROLE_LIST: '/permission/pageList',
    ROLE_ADD: '/permission/add',
    ROLE_UPDATE: '/permission/editRole',
    ROLE_DELETE: '/permission/delete',
    ROLE_UPDATE_STATUS: '/permission/updateStatus',
    ROLE_PERMISSIONS: '/permission/permissions',
    ROLE_UPDATE_PERMISSIONS: '/permission/updatePermissions',
    ROLE_MENUS: '/permission/getMenusByRoleId',

    // 菜单相关接口
    MENU_LIST: '/menu/getMenu',
    MENU_ADD: '/menu/add',
    MENU_UPDATE: '/menu/update',
    MENU_DELETE: '/menu/delete',
    MENU_UPDATE_STATUS: '/menu/updateStatus',

    // 部门相关接口
    DEPT_LIST: '/dept/list',
    DEPT_ADD: '/dept/add',
    DEPT_UPDATE: '/dept/update',
    DEPT_DELETE: '/dept/delete',
    DEPT_UPDATE_STATUS: '/dept/updateStatus',

    // 品名相关接口
    PRODUCT_NAME_LIST: '/productName/pageList',
    PRODUCT_NAME_ADD: '/productName/add',
    PRODUCT_NAME_UPDATE: '/productName/update',
    PRODUCT_NAME_DELETE: '/productName/delete',

    // 统计数据
    DASHBOARD_STATS: '/user/dashboard/count',
    DASHBOARD_CHART: '/dashboard/chart',
    UNLOAD_STATS: '/container/pcUnloadCount',
    CONTAINER_DASHBOARD: '/container/dashboard',
    CONTAINER_UNLOAD_LIST: '/container/pcUnloadPageList'
}

// 导出环境信息
export const ENV = ENV_INFO

// 导出环境配置
export { API_BASE_URL, API_PREFIX, API_URL, ENV_TYPE } 